import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

//创建路由数组 保存地址
const routes:Array<RouteRecordRaw>=[
    {
        path:"/",
        name:"HelloWorld",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/Register",
        name:"Register",
        component:()=>import('../view/00002/Register.vue')
    },
    {
        path:"/Login",
        name:"Login",
        component:()=>import('../view/00002/Login.vue')
    },
    {
        path:"/ShowUserLogin",
        name:"ShowUserLogin",
        component:()=>import('../view/00002/ShowUserLogin.vue')
    },
    {
        path:"/BorLogin",
        name:"BorLogin",
        component:()=>import('../view/00012/BorLogin.vue')
    },
    {
        path:"/BorrowCommon",
        name:"BorrowCommon",
        component:()=>import('../view/00012/BorrowCommon.vue')
    },
    {
        path:"/ShowUserBorrow",
        name:"ShowUserBorrow",
        component:()=>import('../view/00012/ShowUserBorrow.vue')
    },
    {
        path:"/AddUserBorrow/:Bid",
        name:"AddUserBorrow",
        component:()=>import('../view/00012/AddUserBorrow.vue')
    },
    {
        path:"/ShowAllUserBorrow",
        name:"ShowAllUserBorrow",
        component:()=>import('../view/00012/ShowAllUserBorrow.vue')
    },
    {
        path:"/AdminBorrow",
        name:"AdminBorrow",
        component:()=>import('../view/00012/AdminBorrow.vue')
    },
    {
        path:"/AddFinancing",
        name:"AddFinancing",
        component:()=>import('../view/00005/AddFinancing.vue')
    },
    {
        path:"/ShowFinancing",
        name:"ShowFinancing",
        component:()=>import('../view/00005/ShowFinancing.vue')
    },
]

//创建路由实例
const router=createRouter({
    history:createWebHistory(),
    routes
})

//导出路由
export default router